from flask import Flask,render_template

app = Flask(__name__)
app.debug = True
#路由
@app.route("/")
def index():
    return render_template("index.html")

@app.route("/A")
def indexA():
    return render_template("indexA.html")

@app.route("/info", methods=["POST","GET"])
def login():
    return "登陆成功"

@app.route("/<int:name>")
def image(name):
    return "登陆成功%s"%name

@app.route("/logout")
def logout():
    return "注销成功"

if __name__ == '__main__':
    app.run()
